import { axios } from '@/utils/request'

export function queryTeacherCourseInstance (parameter) {
  return axios({
    url: '/teacherCourseInstance/query',
    method: 'post',
    data: parameter
  })
}

export function queryInsByTeaCouId (parameter) {
  return axios({
    url: '/teacherCourseInstance/queryInsByTeaCouId',
    method: 'post',
    data: parameter
  })
}

export function queryTeaCou () {
  return axios({
    url: '/teacherCourseInstance/queryTeaCou',
    method: 'post'
  })
}

export function addTeacherCourseInstance (parameter) {
  return axios({
    url: '/teacherCourseInstance/add',
    method: 'post',
    data: parameter
  })
}

export function addTeacherCourseInstanceList (parameter) {
  return axios({
    url: '/teacherCourseInstance/addList',
    method: 'post',
    data: parameter
  })
}

export function editTeacherCourseInstance (parameter) {
  return axios({
    url: '/teacherCourseInstance/update',
    method: 'post',
    data: parameter
  })
}

export function validateInstanceId (parameter) {
  return axios({
    url: '/teacherCourseInstance/validateInstanceId',
    method: 'post',
    data: parameter
  })
}

export function validateTeacherCourseId (parameter) {
  return axios({
    url: '/teacherCourseInstance/validateTeacherCourseId',
    method: 'post',
    data: parameter
  })
}

export function validateTeacherCourseIdAndInstance (parameter) {
  return axios({
    url: '/teacherCourseInstance/validateTeacherCourseIdAndInstance',
    method: 'post',
    data: parameter
  })
}

export function removeTeacherCourseInstance (parameter) {
  return axios({
    url: '/teacherCourseInstance/remove',
    method: 'post',
    data: parameter
  })
}
